package com.google.code.jmarias.common.action;

import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Ondrej Michal
 */
@XmlRootElement
public class CreateRoomAction extends AbstractSystemAction {

    /** Id mistnosti po vytvoreni serverem zasilane zpet klientovi */
    private Long roomId;

    public CreateRoomAction() {
    }

    @Override
    public String toString() {
        if (roomId == null) {
            return "Zadost o vytvoreni nove mistnosti.";
        } else {
            return "Oznameni o vytvoreni nove mistnosti s id " + roomId + '.';
        }
    }

    public Long getRoomId() {
        return roomId;
    }

    public void setRoomId(Long roomId) {
        this.roomId = roomId;
    }

}
